/*
@author : SuoNi
@date : 2021/12/10 10:08
@Mail : suoni1919@gmail.com
@Description:
*/
package main

import (
	"fmt"
)

func main() {
	st := make(chan int)
	dp := make(chan int)
	go func() {
		st <- 5
		<-st
	}()
	go func() {
		x := <-st
		dp <- x
		<-dp
		st <- 6
	}()
	fmt.Printf("%#v %#v", st, dp)
}
